import { useState } from "react"
function Index(){
    const [count,setCount] =useState(0)
    function add(){
    setCount(count+1)
    }
    return(
<div>
     <h1>index页</h1>
  <button onClick={add}>{count}</button>
    </div>
    )
}
// 匿名函数
// export default ()=>{
//     return <div>index匿名函数模板</div>
// }
export default Index